E cient and Precise Sharing Domains for Logic Programs

نویسنده

  • Christian Fecht
چکیده

Sharing information between logical variables is cru cial for a lot of analyses of logic programs e g free ness analysis detection of And parallelism and occur check Therefore the development of accurate sharing domains has attracted a lot of research The sharing domain JL of Jacobs Langen which represents sub stitutions by powersets of variables is considered one of the most precise sharing domains However it is too ine cient in practice lots of programs cannot be analyzed in reasonable time Improvements of JL by adding auxiliary information like linearity su er from the same ine ciency too To improve upon this situ ation we systematically derived a new sharing domain JL from JL which represents variables by downward closed powersets of variables We combined JL with the groundness domainPOS Both JL and the new do main JL POS have been implemented with the help of the Prolog analyzer generator GENA In order to study the impact of linearity we also implemented the abstract domains JL LIN and JL POS LIN The new domains are much more e cient as their counter parts JL and JL LIN respectively Even more impor tant they can analyze even largest real world programs in reasonable time Surprisingly the new sharing do mains seem to have the same precision than JL and JL LIN in practice

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Share Free Revisited

Analyses for possible variable sharing and de nite freeness are important both in the automatic parallelisation and in the optimisation of sequential logic programs In this paper a new e cient approach to analysis is described which can infer sharing and freeness information to an unusually high degree of accuracy The analysis exploits a con uence property of the uni cation algorithm to split t...

متن کامل

An Abstract Interpretation Scheme for Groundedness, Freeness, and Sharing Analysis of Logic Programs

Static global analyses based on abstract interpretation have been used to derive properties of programs. The analyses differ in the expressiveness of the abstract domains and the precision and efficiency of domain operations. We extend an abstract domain defined by Jacobs and Langen and present new abstract domain operations to derive freeness, groundness, and sharing of variables in logic prog...

متن کامل

Flexible Continuations in Logic Programs via Unfold/Fold Transformations and Goal Generalization

We consider the use of continuations for deriving e cient logic programs. It is known that both in the case of functional and logic programming, the introduction of continuations is a valuable technique for transforming old programs into new, more e cient ones. However, in general, in order to derive programs with high levels of e ciency, one should introduce continuations according to suitable...

متن کامل

Eecient and Precise Sharing Domains for Logic Programs

interpretation [8, 9] formalizes program analysis as approximate computation. Instead of executing a program with data, it is executed with descriptions of the data. In our case, this means that logic programs are executed with abstract substitutions instead of concrete substitutions. Concrete and abstract substitutions are related by a description relation. To every operation on the concrete s...

متن کامل

Precise Set Sharing and Nullity Analysis for Java-style Programs

Finding useful sharing information between instances in object-oriented programs has been recently the focus of much research. The applications of such static analysis are multiple: by knowing which variables share in memory we can apply conventional compiler optimizations, find coarse-grained parallelism opportunities, or, more importantly,erify certain correctness aspects of programs even in ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004